<script type="text/javascript">
$(function () {
	var url = '${contextPath}script/sys/emp.js';
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
			var page = sys_fill_parm('queryEmpForm');
			queryEmp_emp(page);
		}
	});
	$('#queryEmpForm').find("input:checkbox, input:radio").not('input.ibtn').uniform();
});

</script>

<#import "/freemarker/modeltype.ftl" as mt>
<#import "/freemarker/modeltype_entity.ftl" as mte>
<form id="queryEmpForm">
	<input type="hidden" name="organCode" value="${cu_organCode}" />
	<table class="search_term_table">
		<tr>
			<th>Email</th>
			<td><input class="form-control" type="text" name="email" style="width:150px;" /></td>
			<th>角色</th>
			<td><@mte.Role id='selection2' name='rc' nullstr='所有' organCode='${cu_organCode}' classname="uniformselect"/></td>
			<th>是否屏蔽</th>
			<td><@mt.YesOrNo r=true name='deleted' d=false mc=true  className="formwrapper"/></td>
			<td style="text-align:right;">
				<button class="btn btn-info" onclick="javascript: queryEmp_emp(); return false;"><i class="icon-search"></i> 查 询 </button>
				<button class="btn btn-success" onclick="javascript:sys_load_handle('emp-edit'); return false;"><i class="icon-file"></i> 添加</button>
			</td>
		</tr>
		<tr>
			<th>姓名</th>
			<td><input class="form-control" type="text" name="realName" style="width:150px;" /></td>
			<th>所属机构</th>
			<td>
				<div class="input-group">
					<span class="btn-group">
						<input class="form-control" name="on" id="on" class="form-control" size="16" type="text" readonly="readonly" style="width:125px;"/>
						<input type="hidden" name="oc" id="oc" style="width:150px;"/>
						<button class="btn btn-primary" type="button" title="选择该用户所属机构" onclick="javascript: selectOrgan_emp('oc', 'on');return false;"><i class="icon-search"></i></button>
						<button class="btn btn-danger" type="button" title="去除机构查询条件" onclick="javascript: $('#oc').val(''); $('#on').val('');return false;"><i class="icon-remove"></i></button>
					</span>
				</div>
			</td>
		</tr>
	</table>
</form>
<div id="empResultList"></div>

